package com.jintian.smart.platform.system.mapper;

import com.jintian.smart.kernel.orm.mapper.IBaseExtMapper;
import com.jintian.smart.base.api.system.entity.MenuEntity;
import com.jintian.smart.base.api.system.view.MenuVO;
import org.beetl.sql.mapper.annotation.Mapper;
import org.beetl.sql.mapper.annotation.Param;
import org.beetl.sql.mapper.annotation.SqlResource;

import java.util.List;

/**
 * 菜单 dao
 */
@Mapper
@SqlResource("system.Menu")
public interface MenuMapper extends IBaseExtMapper<MenuEntity> {
    /**
     * 根据员工ID查询菜单列表
     *
     * @param deletedFlag  是否删除
     * @param disabledFlag 禁用标识
     * @param employeeId   员工id
     */
    List<MenuVO> queryMenuByEmployeeId(@Param("deletedFlag") Integer deletedFlag,
                                       @Param("disabledFlag") Integer disabledFlag,
                                       @Param("employeeId") Long employeeId);
}
